projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c5a7b7
)
net: sh_eth: Return directly from sh_eth_recv_start
author
Marek Vasut
<
[email protected]
>
Fri, 16 Feb 2018 23:47:38 +0000
(
00:47
+0100)
committer
Marek Vasut
<
[email protected]
>
Sun, 18 Feb 2018 10:20:18 +0000
(11:20 +0100)
Drop the len variable, it's useless.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Nobuhiro Iwamatsu <
[email protected]
>
Cc: Joe Hershberger <
[email protected]
>
drivers/net/sh_eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/sh_eth.c
b/drivers/net/sh_eth.c
index a7d26a2a405d3daefcee68dc9b93123052cebade..6863aecef96830cdb7bb5f056ecd4565580a5318 100644
(file)
--- a/
drivers/net/sh_eth.c
+++ b/
drivers/net/sh_eth.c
@@
-120,7
+120,6
@@
err:
static int sh_eth_recv_start(struct sh_eth_dev *eth)
{
- int len = 0;
struct sh_eth_info *port_info = ð->port_info[eth->port];
/* Check if the rx descriptor is ready */
@@
-132,9
+131,7
@@
static int sh_eth_recv_start(struct sh_eth_dev *eth)
if (port_info->rx_desc_cur->rd0 & RD_RFE)
return -EINVAL;
- len = port_info->rx_desc_cur->rd1 & 0xffff;
-
- return len;
+ return port_info->rx_desc_cur->rd1 & 0xffff;
}
static void sh_eth_recv_finish(struct sh_eth_dev *eth)